module TopNotify
  class Consumer
    TopNotify::TYPE.each_pair do |code, const|
      class_eval <<-EOF
        def #{const[:method]}(data)
          puts data
        end
      EOF
    end
  end
end
